# -*- coding: utf-8 -*-
# @Time    : 2021/10/15 21:36
# @Author  : super

#递归

number = [1, 2, 3]

def one_hundred(num):
	'''100以内数相加'''
	if num == 3:
		return 3
	return num+one_hundred(num+1)

def number_plus(i):
	if i==2:
		return 3
	return number[i]+number_plus(number[i+1])

print(number_plus(0))
print(one_hundred(1))